home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 213 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: ix.netcom.com!netnews
  2. From: miker3@ix.netcom.com (Mike Rubenstein)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Why does a compiled program fail on another machine?
  5. Date: Wed, 03 Jan 1996 12:04:47 GMT
  6. Organization: Netcom
  7. Message-ID: <30ea6d57.45218688@nntp.ix.netcom.com>
  8. References: <820634806snz@metsys.demon.co.uk>
  9. NNTP-Posting-Host: ix-dc8-18.ix.netcom.com
  10. X-NETCOM-Date: Wed Jan 03  4:04:09 AM PST 1996
  11. X-Newsreader: Forte Agent .99c/16.141
  12.  
  13. Douglas John Standen <John@metsys.demon.co.uk> wrote:
  14.  
  15. |>Having written and run a quite complex program, I find that it
  16. |>works perfectly on my 386/22 every time, but fails on my friends
  17. |>486 with acos domain error.
  18. |>
  19. |>Is there any good reason why a C compiled program will always run
  20. |>on its host machine but cause a problem on a non host, if so how
  21. |>does one locate and correct such an error? Apart from compile it
  22. |>on the non host machine!
  23.  
  24. Most likely this is caused by an uninitialized variable that happens
  25. to take on a legal argument value for acos() on one machine but not
  26. the other.
  27.  
  28. Michael M Rubenstein
  29.